package com.erp.module.yuliaofreight

import com.erp.pull.PullP
import com.erp.pull.PullView

interface YuliaoFreightConteract {
    interface YuliaoGiFreight : PullP {
        /**余料出仓*/
        fun outYuliao(yfsg_id:String,rucangcode:String)
        /**余料取料*/
        fun fetchYuliao(yfsg_id:String,length:String,rucangcode: String)
        /**获取余料仓位数据*/
        fun getCangweiData()
    }

    interface YuliaoGiFreightView: PullView {
        /**余料出仓回调*/
        fun outYuliaoChucangOk(data : String)
        fun outYuliaoChucangNo(error :String)
        /**点击余料出仓*/
        fun outYuliaoChucang(yfsg_id:String)
        /**点击余料取料*/
        fun fetch_yuliao(yfsg_id:String,length:String)
        /**获取仓位数据*/
        fun getCangwei(cangweiid: MutableList<String>, cangweiname: MutableList<String>)
        /**获取余料总数*/
        fun setTotal(total:String)
    }

    interface inYuliaoGiFreight{
        /**余料入仓*/
        fun inYuliaoRucang(yfs_id:String,yfsg_id:String,Lenght:String,Width:String,Thickness:String,rucangcode: String)
        /**获取仓位数据*/
        fun getCangweiData()
        /**获取仓位数据*/
        fun getBianmaData(leibie:String)
    }

    interface inYuliaoGiFreightView{
        /**余料入仓回调*/
        fun inYuliaoChucangOk(data : String)
        fun inYuliaoChucangNo(error :String)
        /**获取仓位数据*/
        fun getCangwei(cangweiid: MutableList<String>, cangweiname: MutableList<String>)
        /**获取编码数据*/
        fun getBianma(bianmaid: MutableList<String>, bianmaname: MutableList<String>)
    }

    interface YuliaoFreight{
        /**创建余料仓位*/
        fun cjYuliaoCangwei(name:String)
        /**修改余料仓位*/
        fun xgYuliaoCangwei(name:String,id:String)
        /**获取仓位数据*/
        fun getCangweiData()
    }

    interface  YuliaoFreightView{
        /**创建余料仓位回调*/
        fun cjYuliaoCangweiOk(data:String)
        fun cjYuliaoCangweiNo(data:String)
        /**修改余料仓位回调*/
        fun xgYuliaoCangweiOk(data:String)
        fun xgYuliaoCangweiNo(data:String)
        /**获取仓位数据回调*/
        fun getCangweiDataOk()
        fun getCangweiDataNo()
    }
}